<%@ page import="com.oval.util.OvalTools,
                 java.util.*"%>
<%
   /*
      PageBackBackNew.inc \ufffd\u013c\ufffd\ufffd\ufffd\u04aa\ufffd\ufffd\ufffd\u1e69\ufffd\ufffdpage_back()\ufffd\ufffd\ufffd\ufffd\ufffd\u00fb\ufffd\ufffd\u1e69\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0137\ufffd\ufffd\u0621\ufffd
      \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0139\ufffd\ufffd\ufffd\ufffd\ufffd\u0230\ufffd\u01f0\u04bb\u04b3\ufffd\u0132\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd4\ufffd\ufffd\ufffd\ufffd\u01f0\u04bb\u04b3\ufffd\ufffdurl\ufffd\u04f2\ufffd\ufffd\ufffd\ufffd\ufffd\u0221\ufffd\ufffd
      \u0368\ufffd\ufffdpage_back()\ufffd\ufffd\ufffd\ufffd\u02b1\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0429\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u052d\ufffd\u0235\ufffd\u04b3\ufffd\u68ec\ufffd\ufffd\ufffd\ufffd\u0370\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0632\ufffd\ufffd\ufffd\ufffd\u013f\ufffd\u0121\ufffd
      \ufffd\ufffd\ufffd\udaaf\ude74\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u05ea\ufffd\ufffd\u04b3\ufffd\u68ec\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ub8e8\ufffd\ufffd\ufffd\u00bd\ufffd\u04b3\ufffd\ufffd\ufffd\ufffd\u02b1\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u28ec\ufffd\ufffd\u04aa\ufffd\ufffd\u02bd\ufffd\ufffd\u0368\ufffd\ufffdsession\ufffd\u0137\ufffd\u02bd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u04aa
      \ufffd\ufffd\u05ea\u04b3\ufffd\ufffd\ufffd\ufffdreload\u02b1\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u04bb\ufffd\ufffd\ufffd\ufffd\ufffd jsp_page_reload \ufffd\ufffd\ufffd\ufffdY\ufffd\ufffd\u02b1\ufffd\uda4e\udf31\ufffd\u02be\ufffd\ufffd\u04b3\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u02e3\ufffd\ufffd\ufffd\u02b1\u052d\ufffd\ufffd\u04aa\ufffd\ufffd\ufffd\ufffd\u04b3
      \ufffd\u0132\ufffd\ufffd\ufffd\u0374\ufffdsession\ufffd\ufffd\u0221\ufffd\ufffd\ufffd\ufffd\u05ae\ufffd\ufffd\ufffd\u01f4\ufffdrequest\ufffd\ufffd\u0221\ufffd\ufffd
   */
%>

<%
     // \u0221\ufffd\u00f8\ufffd\u04b3\ufffd\u01f2\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdpagefolw\ufffd\ufffd4\ufffd\ufffd
     String   StrJspPageReload =(String) request.getParameter("jsp_page_reload");
     if(StrJspPageReload==null)   StrJspPageReload=""; System.out.println("StrJspPageReload=1" + StrJspPageReload);
     Stack  pageBackParameterStack =(Stack) session.getAttribute("page_back_session");
     if(pageBackParameterStack==null)    pageBackParameterStack = new Stack();
     Hashtable   pageBackParameterHashtable=new Hashtable();
     if(StrJspPageReload.equalsIgnoreCase("Back")){
            pageBackParameterStack.pop();

            StrJspPageReload="Y";
     }
     if(StrJspPageReload.equalsIgnoreCase("Y")){
         pageBackParameterHashtable =(Hashtable) pageBackParameterStack.peek();
         if(pageBackParameterHashtable==null)   pageBackParameterHashtable = new Hashtable();
     }
     // \ufffd\ufffdsession\ufffd\ufffd\u0221\ufffd\ufffd\ufffd\u04b3\ufffd\u0132\ufffd\ufffd\ufffd\ufffd\ufffd\u03e2


     //\u0221\ufffd\u0137\ufffd\ufffd\u0635\u0135\ufffd\u05b7\ufffd\ufffd\ufffd\ufffd\ufffd\u04b3\ufffd\ufffd\ufffd\ufffd \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdpagefolw\ufffd\ufffd4\ufffd\u0123\ufffd\ufffd\ufffd\ufffd\ufffd\u04b3\ufffd\ufffd\u03e2\ufffd\ufffdsession\ufffd\ufffd\u0221\ufffd\ufffd
     // \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u04b3\ufffd\ufffd\u03e2\ufffd\ufffdrequest\ufffd\ufffd\u0221
     String   jsp_pageback_url = "";
     if(StrJspPageReload.equalsIgnoreCase("Y")){
          jsp_pageback_url=(String)pageBackParameterHashtable.get("jsp_backpagename");   System.out.println("jsp_pageback_url=2" + jsp_pageback_url);

     }else{
          jsp_pageback_url =(String)request.getParameter("jsp_backpagename");  System.out.println("jsp_pageback_url=1" + jsp_pageback_url);

          pageBackParameterHashtable.clear();   System.out.println("request="+request);
     }
     if(jsp_pageback_url==null)   jsp_pageback_url ="";
%>
<script language="JavaScript">
/*
    page_back() \ufffd\ufffd\ufffd\u0537\ufffd\ufffd\u0635\ufffd\ufffd\ufffd\u052d\u02bc\u04b3\ufffd\ufffd\ufffd\ufffd\ufffd\u04b1\ufffd\ufffd\ufffd\u052d\u02bc\u04b3\ufffd\ufffd\ufffd\ufffd\u0632\ufffd\ufffd\ufffd
*/
 function  page_back(){
       <%
           if(jsp_pageback_url==null || jsp_pageback_url.equals("")){
       %>
              top.left.page_back(self,'<%=JspHelper.filterNull(request.getHeader("referer"))%>');
       <%
           }else {
       %>
             pagebackform.action = "<%=JspHelper.filterNull(jsp_pageback_url)%>?jsp_page_reload=Back";
             pagebackform.target = "_self";
             isRunning = true;
             pagebackform.submit();
       <%}%>
 }

</script>
<%
     /*\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd4\ufffd\u0132\ufffd\ufffd\ufffd\ufffd\ufffd\u03e2\ufffd\ufffd\u0434\ufffd\ufffd\u04b3\ufffd\ufffd\ufffd\u03e3\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdsession\ufffd\ufffd

     */
%>
<form name="pagebackform" method="post" >
<%
       Enumeration parameterEnumeration;
       if(!StrJspPageReload.equalsIgnoreCase("Y")){
           parameterEnumeration = request.getParameterNames();
       }else{
           parameterEnumeration =(Enumeration) pageBackParameterHashtable.keys();
       }
      // Hashtable   pageBackParameterHashtable = new  Hashtable();
       while(parameterEnumeration.hasMoreElements()){
           String  parameterObject= parameterEnumeration.nextElement().toString();
           String  parameterValue ="";
           if(StrJspPageReload.equalsIgnoreCase("Y")){
                    parameterValue =(String)pageBackParameterHashtable.get(parameterObject);
           }else{
                    parameterValue=(String) request.getParameter(parameterObject) ;
                    if(parameterValue!=null)      parameterValue   =  changeGBK(parameterValue);
           }                                     System.out.println(parameterObject +" = " +parameterValue);

           if(parameterObject.equals("pageaction") && (parameterValue==null  || parameterValue.trim().equals(""))){
                  parameterValue="OrderBy";
           }
           if(parameterValue!=null  && !parameterValue.trim().equals("")){
                  if(!StrJspPageReload.equalsIgnoreCase("Y")){
                        pageBackParameterHashtable.put(parameterObject,parameterValue);
                  }
%>
                  <input type="hidden" name="<%=JspHelper.filterNull(parameterObject)%>"  value="<%=JspHelper.filterNull(parameterValue)%>"   >
<%
           }
       }
       if(!StrJspPageReload.equalsIgnoreCase("Y")){
               pageBackParameterHashtable.put("jsp_backpagename",jsp_pageback_url);
               pageBackParameterStack.push(pageBackParameterHashtable) ;
       }
       session.setAttribute("page_back_session",pageBackParameterStack);

%>
<%!
    public  String   changeGBK(String  s ) {
               String  strTempGBK =null;

               try{
                     strTempGBK= new String(s.getBytes("ISO-8859-1"),"GBK");
               } catch (Exception e){

               }
               if(strTempGBK!=null)  {
                         s  = strTempGBK;
               }
          return  s ;
    }
%>
</form>

